package com.ruoyi.generator.service;

import com.ruoyi.generator.domain.Province;
import com.ruoyi.generator.mapper.ProvinceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProvinceServiceImpl implements IProvinceService{
    @Autowired
    ProvinceMapper provinceMapper;
    @Override
    public List<Province> getProvinceList(Province Provice) {
        return provinceMapper.getProvinceList(Provice);
    }

    @Override
    public void removeById(String id) {
        provinceMapper.removeById(id);
    }

    @Override
    public void insert(Province province) {
        provinceMapper.insert(province);
    }

    @Override
    public Province getProvinceById(String provinceId) {
        return provinceMapper.getProvinceById(provinceId);
    }
}
